package com.bdc.whatwhat.factory;

import com.bdc.whatwhat.modele.WhatWhat;
import com.bdc.whatwhat.modele.Whatter;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by gfimac on 21/07/2014.
 */
public class Factory {

    public static List<WhatWhat> whatWhatList(){
        List<WhatWhat> whatWhats = new ArrayList<WhatWhat>();

        for(int i=0;i<10;++i) {
            whatWhats.add(new WhatWhat("0", "Je joue au football", createur(), "1"));
            whatWhats.add(new WhatWhat("1", "Dors", createur(), "5000"));
            whatWhats.add(new WhatWhat("2", "Caresse mon chien", createur(), "101"));
            whatWhats.add(new WhatWhat("3", "Je fais des sites web", createur(), "1337"));
            whatWhats.add(new WhatWhat("4", "Je fais caca", createur(), "54"));
            whatWhats.add(new WhatWhat("5", "Caresse mon chat", createur(), "5"));

        }

        return whatWhats;
    }

    public static WhatWhat whatWhat() {
        return new WhatWhat("3", "Je fais des sites web", createur(), "1337");
    }

    public static List<WhatWhat> whatWhatList(String mot){
        List<WhatWhat> whatWhats = new ArrayList<WhatWhat>();

        for(int i=0;i<10;++i) {
            whatWhats.add(new WhatWhat("0", mot+i, createur(), "1"));
        }

        return whatWhats;
    }

    public static Whatter createur(){
        return new Whatter("4","Voisin","Jean-Christophe","http://img4.wikia.nocookie.net/__cb20101010032409/southpark/images/c/c2/Butters_(Facebook).jpg");
    }

    public static Whatter kevin(){
        Whatter whatter =  new Whatter("0","De Jesus Ferreira","Kevin","https://lh4.googleusercontent.com/-_zVD3RGsLCc/UpB-gckqcYI/AAAAAAAAADk/LRxRwQ_ZLfs/w874-h873-no/kevinPosition.jpg","https://lh5.googleusercontent.com/-IsTqR6X-nyM/UYFKqy31ZyI/AAAAAAAABiU/LNCABhk70RY/w1600-h900/default_cover_4_0d4d8376ed208af1df44d5624273dcf8.jpg",new WhatWhat("0","Je joue au football",null,"136504"));

        whatter.setNiveau(1);
        whatter.setXpActuel(450l);
        whatter.setXpMax(500l);

        return whatter;
    }

    public static Whatter florent(){
        Whatter whatter =  new Whatter("1","Champigny","Florent","https://lh4.googleusercontent.com/-hXxClDefzuA/Uo8Ox-iB9KI/AAAAAAAAASM/9DxqyxNZlh0/w872-h873-no/profil+-+rogne.jpg","https://lh4.googleusercontent.com/-GeT1oXw6kG0/Uo8Sn81htpI/AAAAAAAAASw/dq0A-iJHLps/w1474-h829-no/kitkat.jpg",new WhatWhat("1","Je dors",null,"5432107"));

        whatter.setNiveau(4);
        whatter.setXpActuel(750l);
        whatter.setXpMax(2500l);

        return whatter;
    }

    public static Whatter logan(){
        Whatter whatter = new Whatter("2","Bourgoin","Logan","https://lh3.googleusercontent.com/-IbmdKJMsS6w/U0qiWBeC2NI/AAAAAAAADK8/oKw-1v1Wcgg/s534-no/bongo_512.jpg","https://lh5.googleusercontent.com/-MQto6K9mCG8/UYvJyLmWmpI/AAAAAAAAA_0/vymYLULdm28/w512-h288-no/82700973.gif",new WhatWhat("2","Je fais des sites web",null,"1337"));

        whatter.setNiveau(3);
        whatter.setXpActuel(1337l);
        whatter.setXpMax(2000l);

        return whatter;
    }

    public static List<Whatter> watters(){
        List<Whatter> whatters = new ArrayList<Whatter>();

        whatters.add(kevin());
        whatters.add(florent());
        whatters.add(logan());

        return whatters;
    }


}
